package stutool;

public class stu {
    private String id;
    private String name;
    private int age;
    private String homeAddress;

    //构造方法
    public stu(){}
    public stu(String id, String name, int age, String homeAddress){
        this.id = id;
        this.name = name;
        this.age = age;
        this.homeAddress = homeAddress;
    }

    //set和get方法
    public void setId(String id){
        this.id = id;
    }
    public String getId(){
        return id;
    }

    public void setName(String name){
        this.name = name;
    }
    public String getName(){
        return name;
    }

    public void setAge(int age){
        this.age = age;
    }
    public int getAge(){
        return age;
    }

    public void setHomeAddress(String homeAddress){
        this.homeAddress = homeAddress;
    }
    public String getHomeAddress(){
        return homeAddress;
    }
    
}
